package com.sunny.t3;

import java.util.Scanner;
import java.util.TreeMap;

public class Main {



    public static void main(String[] args) {

        int n,m;
        Scanner scanner = new Scanner(System.in);

        n = scanner.nextInt();
        m = scanner.nextInt();

        int x,y;
        for(int i=0;i<n;i++){
            x = scanner.nextInt();
            y = scanner.nextInt();
        }

        long res = 0;

        System.out.println(0);
    }

}
